package com.haiyou.common.spring.log.warning.event;

import com.haiyou.common.event.AbstractEvent;

import ch.qos.logback.classic.spi.ILoggingEvent;
import lombok.Getter;
import lombok.Setter;

/**
 * 
 * 
 * @Description: 异常日志事件
 * @author xingyuan
 * @date 2023年3月30日 上午11:59:17
 */
public class ExceptionLogEvent extends AbstractEvent{

	private static final long serialVersionUID = 8315100676620949526L;
	
	@Getter
	@Setter
	private ILoggingEvent event;
	
	private ExceptionLogEvent() {}
	
	public static ExceptionLogEvent create(ILoggingEvent event) {
		ExceptionLogEvent logEvent = new ExceptionLogEvent();
		logEvent.setEvent(event);
		return logEvent;
	}
	
	
}
